<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BaLs.Models.Link>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>Create</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create</h2>
    <% 
        if(ViewData["url"].Equals(string.Empty))
        {
         using (Html.BeginForm()) { %>

        <fieldset>
            <legend>Fields</legend>           
            <p>
                <label for="url">url:</label>
                <%= Html.TextBox("url") %>
                <%= Html.ValidationMessage("url", "*") %>
                <%= Html.Hidden("state","0") %>
            </p>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>
     
    <% }}
        else
        {
            Html.RenderPartial("CreatePartial");
        }
            %>

</asp:Content>
